<div id="in_konten">
<div class="flowNav"><p><?php echo $cumb;?></p></div>                         
<h2>Keranjang Belanja</h2>
		<?php $i = 0; if($num_cart!=0):?>
			<form method="post" action="<?php echo site_url()?>order/delete/<?=$this->session->userdata('session_id')?>">
				<table border="0" cellpadding="0" cellspacing="0" class="shoppingTable">
					<tr class="cart_title">
						<th style="width:180px">Produk</td>
						<th style="width:100px;text-align:right;">Harga Per Unit</td>
						<th style="width:10px;text-align:center;">Jumlah</td>
						<th style="width:130px;text-align:right;">Sub Total</td>  
						<th style="width:150px;text-align:center;">Action</td>
					</tr>
					<tr>
					<?php foreach($cart as $cart): $i++;?>
						<tr>
							<td class="isi_tab"><?php echo $cart['product'][0]['nama_produk']; ?></td>
							<?php if($cart['diskon'] != 0):?>
								<td style="text-align:right;"><?php echo formatHarga($cart['harga_baru'], 'lengkap');?></td>
							<?php else:?>
								<td style="text-align:right;"><?php echo formatHarga($cart['harga'], 'lengkap');?></td>
							<?php endif;?>
							<td style="text-align:center;"><?php echo $cart['temp_jml']; ?></td>
							<td style="text-align:right;"><?php echo formatHarga($cart['temp_subtotal'], 'lengkap');?></td>
							<td style="text-align:center;">
							<a href="<?php echo site_url()?>order/edit_item/<?php echo $this->session->userdata('session_id')?>/<?php echo $cart['temp_produk_id']; ?>">Edit</a> |
							<a href="<?php echo site_url()?>order/deleteitem/<?php echo $this->session->userdata('session_id')?>/<?php echo $cart['temp_produk_id']; ?>">Hapus</a>
							</td>
						</tr>
					<?php endforeach; ?>   
					</tr>           
					<tr>
						<td colspan="3" class="cart_total"><span class="red">TOTAL: </span></td>
						<td style="background-color:#CCC;text-align:right;"><strong><?php echo formatHarga($total,'lengkap')?></strong></td>                   
					</tr>    
				</table>
				<p><a href="<?php echo site_url()?>">teruskan belanja</a>
				<a href="<?php echo site_url('order/checkout/')?>" class="checkout">checkout</a></p>
			</form>
		<?php else:?>
			<table class="cart_table">
			- Data kosong -
			</table>
		<?php endif;?>	
<div class="clear"></div>
</div>